﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demos.DesignPatterns._18_迭代器模式
{
    /// <summary>
    /// 书籍集合接口
    /// </summary>
    public interface IBookCollection
    {

        IIterator<Book> CreateIterator();

        int Count { get; }

        Book this[int index]
        {
            get;
        }
    }
}
